const userService = require("../services/user");
// const { validateLogin } = require("../validator/user"); // 参数校验

exports.getUserInfo = async (ctx) => {
  const { page, pageSize } = ctx.request.body || {};
  console.log("kkkkkkk", page, pageSize);

  const { userList } = await userService.getUserInfo({
    page,
    pageSize,
  });
  // 3. 返回响应
  ctx.body = { code: "00", data: userList };
};
